package com.hanxiaozhang.config;

import org.springframework.cloud.client.loadbalancer.LoadBalanced;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.client.RestTemplate;

/**
 * 〈一句话功能简述〉<br>
 * 〈RestTemplate配置类〉
 *
 * @author hanxinghua
 * @create 2020/6/28
 * @since 1.0.0
 */
@Configuration
public class RestTemplateConfig {

    @Bean
    // 配置Ribbon 负载均衡
    @LoadBalanced
    public RestTemplate restTemplate() {
        return new RestTemplate();
    }
}
